import App from './App'

import uView from 'uview-ui';
Vue.use(uView);

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

// 全局注册请求
import http from './utils/https.js'
Vue.prototype.request = http
// 图片域名
Vue.prototype.imgUrl = 'https://qiniu-cdn.maeiyun.com/'

import Util from './utils/util.js'
import {$get,$post}  from './utils/request.js'
Vue.prototype.$util = Util
Vue.prototype.$get = $get
Vue.prototype.$post = $post

const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif